﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreateCompany.aspx.cs" Inherits="Main_Company_CreateCompany" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControl" %>
<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Create Company</title>
    <link href="../../Styles/accounts.css" rel="Stylesheet" type="text/css" />
   
</head>
<body>
    <form id="form1" runat="server">
    <div class="divmain" >  
           <div class="divmain">
        <acc:heading ID="pagehead" runat="server" HeadingText="Create Company" />
        </div>
        
           <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager> 
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <div align ="center"><asp:Label ID="lblMsg" runat="server" Font-Bold="true"></asp:Label></div> 
                        <asp:UpdateProgress DynamicLayout="false" AssociatedUpdatePanelID="UpdatePanel1" ID="UpdProgress" runat="server">
                            <ProgressTemplate>
                                <div align="center"><img src="../../Images/ajax-loader.gif" /></div>
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                        <br />
                        <table class="tablecontent"  style= "width:50%;margin-left:15%; margin-right:35%; border:1px solid #818181;" >
                              <tr>
                                <td class="headtd" colspan="2"> 
                                   Company Detail
                               </td>
                             </tr>
                             <tr>
                                <td> Company Name <span class="required">*</span> </td>
                                <td> <asp:TextBox ID="TxtCompanyName" runat="server" Width="130px" ToolTip="Enter Company Name"  ValidationGroup="name" CssClass ="input" ></asp:TextBox> 
                                    

                                      <asp:RequiredFieldValidator ID="RFVCompanyName" runat="server" ValidationGroup="name" ControlToValidate="TxtCompanyName" ErrorMessage="*" ></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            
                              <tr>
                                <td> </td>
                                <td>
                                    <asp:Button ID="Create" runat="server" Text="Create" CssClass="button" 
                                        ValidationGroup="name" onclick="Create_Click" />    
                                    &nbsp; &nbsp;
                                    <asp:Button ID="Close" runat="server" Text="Close" CssClass="button" ValidationGroup="name" />               
                                </td>
                            </tr>
                            
                       </table>
                    </ContentTemplate>
              </asp:UpdatePanel>
    
    
    </div>
    </div>
    </form>
</body>
</html>
